Surgery for implantation of a prosthesis